<!-- $Id: article_info.htm 16780 2009-11-09 09:28:30Z sxc_shop $ -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ECSHOP 管理中心 - 添加新文章 </title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="__TMPL__/Public/styles/general.css" rel="stylesheet" type="text/css" />
<link href="__TMPL__/Public/styles/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__ROOT__/JS/jquery.js"></script>
<script language="javascript">
$(document).ready(function(e) {
    $("select[selectedvalue]").each(function(index, element) {
        var value=$(this).attr('selectedvalue');
		$(this).children("[value='"+value+"']").attr('selected',true);
    });
});
</script>
</head>
<body>

<h1>
<span class="action-span"><a href="__ACTION__/action/list">文章列表</a></span>
<span class="action-span1"><a href="__APP__/Index/first">ECSHOP 管理中心</a> </span><span id="search_id" class="action-span1"> - 添加新文章 </span>
<div style="clear:both"></div>
</h1>
<!-- start goods form -->
<div class="tab-div">
  <div id="tabbar-div">
    <p>
      <span class="tab-front" id="general-tab">通用信息</span>
	  <span class="tab-back" id="detail-tab">文章内容</span>
    </p>
  </div>

  <div id="tabbody-div">
    <form  action="__ACTION__" method="post" enctype="multipart/form-data" name="theForm" onsubmit="return validate();">
    <input name="Id" type="hidden" value="{$data.Id}" />
    <input name="action" type="hidden" value="{$Think.get.action}" />
    <table width="90%" id="general-table">
      <tr>
        <td class="narrow-label">文章标题</td>
        <td><input type="text" name="title" size ="40" maxlength="60" value="{$data.title}" /><span class="require-field">*</span></td>
      </tr>          
      <!--  -->
      <tr>
        <td class="narrow-label">文章分类 </td>
        <td>
          <select name="type_id" id="type_id" selectedvalue="{$data.type_id}">
          	
			<volist name=":TypeTree()" id="row">
            <option value="{$row.Id}">{$row.typename}</option>
            <gt name="row.sublist|count" value="0">
            	<volist name="row.sublist" id="sub">
                	<option value="{$sub.Id}">&nbsp;&nbsp;{$sub.typename}</option>
                </volist>
            </gt>
            </volist>       
            </select>
         <span class="require-field">*</span></td>
      </tr>
      <!--  -->
            <tr>
        <td class="narrow-label">文章重要性</td>
        <td><input type="radio" name="istop" value="0" checked>普通      <input type="radio" name="istop" value="1" >置顶        <span class="require-field">*</span>
              <script language="javascript">
	 // alert($("[name='istop']").length);
	  $("[name='istop'][value='{$data.istop}']").attr('checked',true);
	  </script>
              </td>
      </tr>
      <tr>
        <td class="narrow-label">是否显示</td>
        <td>
        <input type="radio" name="isshow" value="1" checked> 显示      <input type="radio" name="isshow" value="0" > 不显示<span class="require-field">*</span>        
        <script language="javascript">
	 // alert($("[name='istop']").length);
	  $("[name='isshow'][value='{$data.isshow}']").attr('checked',true);
	  </script>
        </td>
      </tr>
            <tr>
        <td class="narrow-label">文章作者</td>
        <td><input type="text" name="author" maxlength="60" value="{$data.author}" /></td>
      </tr>
      <tr>
        <td class="narrow-label">作者email</td>
        <td><input type="text" name="email" maxlength="60" value="{$data.email}" id="email" /></td>
      </tr>
      <tr>
        <td class="narrow-label">关键字</td>
        <td><input type="text" name="keywords" maxlength="60" value="{$data.keywords}" /></td>
      </tr>
      <tr>
        <td class="narrow-label">网页描述</td>
        <td><textarea name="description" id="description" cols="40" rows="5">{$data.description}</textarea></td>
      </tr>
    </table>

    <table width="90%" id="detail-table" style="display:none">
     <tr><td>
     <input type="hidden" id="content" name="content" value="{$data.content}" style="display:none" />
     <input type="hidden" id="FCKeditor1___Config" value="" style="display:none" />
     <iframe id="FCKeditor1___Frame" src="__ROOT__/include/fckeditor/editor/fckeditor.html?InstanceName=content&amp;Toolbar=Normal" width="100%" height="320" frameborder="0" scrolling="no"></iframe></td></tr>
    </table>
    <div class="button-div">
      <input type="submit" value=" 确定 " class="button"  />
      <input type="reset" value=" 重置 " class="button" />
    </div>
    </form>
  </div>
</div>
<script language="javascript">
$("#tabbar-div>p>span").click(function(){
	var id=$(this).attr('id').replace("tab","table");
	$("#"+id).show().siblings("table").hide();
	$(this).removeClass("tab-back").addClass("tab-front").siblings("span").removeClass("tab-front").addClass("tab-back");
});
</script>
<!-- end goods form -->
<div id="footer">
共执行 3 个查询，用时 0.032813 秒，Gzip 已禁用，内存占用 0.318 MB<br />
版权所有 &copy; 2005-2012 上海商派网络科技有限公司，并保留所有权利。</div>
<!-- 新订单提示信息 -->
</body>
</html>